<?php
App::uses ( 'AppController', 'Controller' );
/**
 * Stores Controller
 *
 * @property Store $Store
 */
class VideosController extends AppController {
	var $helpers = array('Qrcode');
	
	public $components = array (
			'RequestHandler' 
	);
	
	public function beforeFilter() {
		parent::beforeFilter ();
		if ($this->RequestHandler->accepts ( 'html' )) {
			// Execute code only if client accepts an HTML (text/html) response
		} elseif ($this->RequestHandler->accepts ( 'xml' )) {
			// Execute XML-only code
		}
		
		$this->Auth->allow ( '*' );
	}
	public function showProduct()
	{
		
	}
	public function showproduct2()
	{
		
	}
	public function showProductQrcode()
	{
		$this->layout="ajax";
	}
}
